import QtQuick 2.7
import QtQuick.Layouts 1.3

Row {
    anchors.fill: parent
    spacing: 10

    TextInput {
        id: textInput
        width: parent.width-searchButton.width
        height: 20
        text: "请输入查找的设备"
        color: "white"
        wrapMode:TextInput.Wrap

        onActiveFocusChanged: {
            textInput.clear()
        }
    }

    Image {
        id: searchButton
        source: "source/searchIcon.bmp"
        Layout.fillWidth: true
        MouseArea{
            anchors.fill: parent

            onClicked: {
                console.debug(parent.height)
                textInput.text = "没有找到"
            }
        }
    }
}
